package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "talk_records_vote_answer",comment = "聊天对话记录（投票消息统计表）")
public class TalkRecordsVoteAnswer {
    @AcColumn(name = "id",comment = "答题ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "vote_id",defaultValue = "0",comment = "投票ID",type = ColumnTypeEnums.INT)
    private Integer vote_id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "option", defaultValue = "", comment = "投票选项[A、B、C 、D、E、F]", type = ColumnTypeEnums.CHAR,length = 1, isNull = false)
    private String option;

    @AcColumn(name = "created_at", comment = "答题时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;
}
